package com.pig4cloud.mall.order.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 订单退货申请
 *
 * @author fangyu
 * @date 2020-12-25 17:48:00
 */
@Data
@TableName("oms_order_return_apply")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "订单退货申请")
public class OrderReturnApply extends Model<OrderReturnApply> {
	private static final long serialVersionUID = 1L;

	/**
	 *
	 */
	@TableId
	@ApiModelProperty(value = "")
	private Long id;
	/**
	 * 订单id
	 */
	@ApiModelProperty(value = "订单id")
	private Long orderId;
	/**
	 * 收货地址表id
	 */
	@ApiModelProperty(value = "收货地址表id")
	private Long companyAddressId;
	/**
	 * 退货商品id
	 */
	@ApiModelProperty(value = "退货商品id")
	private Long productId;
	/**
	 * 订单编号
	 */
	@ApiModelProperty(value = "订单编号")
	private String orderSn;
	/**
	 * 申请时间
	 */
	@ApiModelProperty(value = "申请时间")
	private LocalDateTime createTime;
	/**
	 * 会员用户名
	 */
	@ApiModelProperty(value = "会员用户名")
	private String memberUsername;
	/**
	 * 退款金额
	 */
	@ApiModelProperty(value = "退款金额")
	private BigDecimal returnAmount;
	/**
	 * 退货人姓名
	 */
	@ApiModelProperty(value = "退货人姓名")
	private String returnName;
	/**
	 * 退货人电话
	 */
	@ApiModelProperty(value = "退货人电话")
	private String returnPhone;
	/**
	 * 申请状态：0->待处理；1->退货中；2->已完成；3->已拒绝
	 */
	@ApiModelProperty(value = "申请状态：0->待处理；1->退货中；2->已完成；3->已拒绝")
	private Integer status;
	/**
	 * 处理时间
	 */
	@ApiModelProperty(value = "处理时间")
	private LocalDateTime handleTime;
	/**
	 * 商品图片
	 */
	@ApiModelProperty(value = "商品图片")
	private String productPic;
	/**
	 * 商品名称
	 */
	@ApiModelProperty(value = "商品名称")
	private String productName;
	/**
	 * 商品品牌
	 */
	@ApiModelProperty(value = "商品品牌")
	private String productBrand;
	/**
	 * 商品销售属性：颜色：红色；尺码：xl;
	 */
	@ApiModelProperty(value = "商品销售属性：颜色：红色；尺码：xl;")
	private String productAttr;
	/**
	 * 退货数量
	 */
	@ApiModelProperty(value = "退货数量")
	private Integer productCount;
	/**
	 * 商品单价
	 */
	@ApiModelProperty(value = "商品单价")
	private BigDecimal productPrice;
	/**
	 * 商品实际支付单价
	 */
	@ApiModelProperty(value = "商品实际支付单价")
	private BigDecimal productRealPrice;
	/**
	 * 原因
	 */
	@ApiModelProperty(value = "原因")
	private String reason;
	/**
	 * 描述
	 */
	@ApiModelProperty(value = "描述")
	private String description;
	/**
	 * 凭证图片，以逗号隔开
	 */
	@ApiModelProperty(value = "凭证图片，以逗号隔开")
	private String proofPics;
	/**
	 * 处理备注
	 */
	@ApiModelProperty(value = "处理备注")
	private String handleNote;
	/**
	 * 处理人员
	 */
	@ApiModelProperty(value = "处理人员")
	private String handleMan;
	/**
	 * 收货人
	 */
	@ApiModelProperty(value = "收货人")
	private String receiveMan;
	/**
	 * 收货时间
	 */
	@ApiModelProperty(value = "收货时间")
	private LocalDateTime receiveTime;
	/**
	 * 收货备注
	 */
	@ApiModelProperty(value = "收货备注")
	private String receiveNote;
}
